$OpenBSD: patch-onew_c,v 1.2 2017/05/06 12:51:21 espie Exp $
Index: onew.c
--- onew.c.orig
+++ onew.c
@@ -26,7 +26,8 @@ History:
 #include <signal.h>
 #include <ctype.h>
 #include <stdio.h>
-extern char *getenv();
+#include <stdlib.h>
+#include <string.h>
 #include "onew.h"
 
 int on_via;
@@ -492,6 +493,7 @@ ONEW_BEEP(nsec){
 	fflush(stdout);
 }
 static int prev_modef;
+void
 ONEW_DISP_ROMKANMODE(cmode,chelp,modef)
 	char *cmode,*chelp;
 {
